package cn.ieayinfo.train.mybooks.Repository;


import cn.ieayinfo.train.mybooks.Entity.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookRepository extends JpaRepository<Book, Long> {
    Book findBookById(Long id);
    List<Book> findByCreatoruid(Long uid);
    List<Book> findByIsShare(Boolean isShare);
    @Override
    <S extends Book> S saveAndFlush(S s);

    @Override
    void deleteById(Long aLong);
}
